package yang.itcode.mapper;

import cn.hutool.json.JSONObject;
import org.apache.ibatis.annotations.Mapper;
import yang.itcode.model.pojo.Profit;

import java.util.List;

@Mapper
public interface ProfitMapper {
    int insert(Profit profit);

    int update(Profit profit);

    int deleteById(Integer id);

    Profit selectById(Integer id);

    List<Profit> selectAll();

    List<Profit> selectByCondition(JSONObject condition);
}
